package org.tong.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.tong.fallback.EchoFallBack;

@FeignClient(value = "service-provider", fallback = EchoFallBack.class)
public interface FeignProviderService {

    @RequestMapping("/echo/{msg}")
    public String echo(@PathVariable("msg") String msg);
}
